<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title>企业教官注册</title>
	<meta name="description" content="__DESCRIPTION__" />
	<meta name="keywords" content="__KEYWORDS__" />
	<link href="__CSS__/common.css" rel="stylesheet" type="text/css" />
	<link href="__CSS__/Version4Master.css" rel="stylesheet" type="text/css" />
	<link rel="stylesheet" rev="stylesheet" type="text/css" href="__CSS__/reg.css" />
	<link rel="Stylesheet" rev="Stylesheet" type="text/css" href="__CSS__/validator.css" />
	<script src="__JS__/jquery-1.8.2.js" type="text/javascript"></script>
	<script src="__JS__/formValidator-4.0.1.js" type="text/javascript" charset="UTF-8"></script>
	<script src="__JS__/ValidatorRegex.js" type="text/javascript" charset="UTF-8"></script>
	<script src="__JS__/DateTimeMask.js" type="text/javascript" charset="UTF-8"></script>
	<link href="__CSS__/thickbox.css" rel="stylesheet" type="text/css" />
	<link href="__CSS__/Public/table.css" rel="Stylesheet" rev="Stylesheet" /> 
	<script src="__JS__/thickbox.js" type="text/javascript"></script>
	<style type="text/css">
		.STYLE1 {
			color: #FF3300;
			font-size: 12px;
		}
		.STYLE2 {
			font-size: 14px;
		}
		.STYLE3 {
			font-size: 12px;
		}
		.input-button, .input-submit {
			background-color: #005EAC;
			border-color: #B8D4E8 #124680 #124680 #B8D4E8;
			border-style: solid;
			border-width: 1px;
			color: #FFFFFF;
			cursor: pointer;
			font-size: 12px;
			padding: 4px 15px;
			text-align: center;
		}
		input.gray {
			background: none repeat scroll 0 0 #F0F0F0 !important;
			border-color: #FFFFFF #848484 #848484 #FFFFFF !important;
			border-style: solid;
			border-width: 1px;
			color: #333333 !important;
		}
	</style>
	<script type="text/javascript" language="javascript">
        $(document).ready(function () {
           $.formValidator.initConfig({formID:"aspnetForm",autoTip:false,onError:function(msg){alert(msg)},inIframe:true});
			$("#LoginEmail").formValidator({onShow:"请输入用户名",onFocus:"填写一个常用邮箱吧，注册成功后就不能修改了！",onCorrect:"该用户名可以注册"}).inputValidator({min:1,max:100,onError:"你输入的用户名非法,请确认"}).regexValidator({regExp:"email",dataType:"enum",onError:"您输入的邮箱格式不正确"})
				.ajaxValidator({
				dataType : "html",
				type : "POST",
				async : true,
				url : "__URL__/checkUsername",
				success : function(data){
					if( data == '0' ) {return true};
					return false;
				},
				buttons: $("#button"),
				error: function(jqXHR, textStatus, errorThrown){alert("服务器没有返回数据，可能服务器忙，请重试");},
				onError : "该用户名不可用，请更换用户名",
				onWait : "正在对用户名进行合法性校验，请稍候..."
			});
	    $("#Email").formValidator({onShow: "此邮箱地址将是组委会与你日常联系的重要途径之一，一定要认真填写哦！可以与“登录邮箱”相同", onFocus: "此邮箱地址将是组委会与你日常联系的重要途径之一，一定要认真填写哦！可以与“登录邮箱”相同", onCorrect: "　", defaultValue: "" }).inputValidator({ min: 1, max: 100, onError: "你输入的邮箱长度非法,请确认" }).regexValidator({ regExp: "email", dataType: "enum", onError: "你输入的邮箱格式不正确" })
			.ajaxValidator({
				dataType : "html",
				type : "POST",
				async : true,
				url: "__URL__/checkEmail",
				success : function(data){
					if( data == '0' ) {return true};
					return false;
				},
	        buttons: $("#button"),
	       error: function(jqXHR, textStatus, errorThrown){alert("服务器没有返回数据，可能服务器忙，请重试");},
	        onError: "此邮箱已经使用，换一个邮箱吧",
	        onWait: "正在对用户名进行合法性校验，请稍候..."
	    }) ;
		//$("#IndustryList").formValidator({tipCss :{"left":"68px"},onShow:"按住CTRL可以多选",onFocus:"按住CTRL可以多选,至少选择2个",onCorrect:"谢谢你的合作",defaultValue:["0","1","2"]}).inputValidator({min:2,onError:"至少选择2个"});

		$("#EnterpriseList").formValidator({onShow:"请选择！",onFocus:"必须选择！",onCorrect:"　",defaultValue:""}).inputValidator({min:1,onError: "你是不是忘记选择了!"});
	    $("#PhoneNumber").formValidator({onShow:"请输入你的手机号码！",onFocus:"请输入你的手机号码！",onCorrect:"　"}).inputValidator({min:11,max:11,onError:"手机号码必须是11位的,请确认"}).regexValidator({regExp:"mobile",dataType:"enum",onError:"你输入的手机号码格式不正确"});
	    $("#Password").formValidator({onShow:"请输入密码, 6~16个字符，由数字、字母、符号组成！",onFocus:"请输入密码, 6~16个字符，由数字、字母、符号组成！",onCorrect:"　"}).inputValidator({min:6,max:16,empty:{leftEmpty:false,rightEmpty:false,emptyError:"密码两边不能有空符号"},onError:"密码长度非法,请确认"});
	    $("#Repassword").formValidator({onShow:"请输入重复密码！",onFocus:"两次密码必须一致哦！",onCorrect:"　"}).inputValidator({min:6,max:16,empty:{leftEmpty:false,rightEmpty:false,emptyError:"重复密码两边不能有空符号"},onError:"两次密码必须一致！"}).compareValidator({desID:"Password",operateor:"=",onError:"两次密码不一致,请确认"});
	    $("#TrueName").formValidator({onShow:"请输入真实姓名, 2-5个简体中文", onFocus:"姓名不能为空",onCorrect: "　",defaultValue:""}).inputValidator({min:4,max:10,empty:{leftEmpty:false,rightEmpty:false,emptyError:"姓名两边不能有空符号"},onError:"姓名必须为2-5个简体中文"}).regexValidator({regExp:"chinese",dataType:"enum",onError:"姓名必须为2-5个简体中文"});
			//加载行业信息
			$.get("__URL__/getIndustryList",function(data){
				for(var i=0;i<data.length;i++){
					$("#IndustryList").append("<option value='"+data[i].Id+"'>"+data[i].Name+"</option>");
				}
			},"json");
			//加载企业信息
			
			$.get("__URL__/getEnterpriseList",function(data){
				for(var i=0;i<data.length;i++){
					$("#EnterpriseList").append("<option value='"+data[i].Id+"'>"+data[i].Name+"</option>");
				}
			},"json");
			
			$("#EnterpriseList").change(function(){$("#EnterpriseName").val($("#EnterpriseList option:selected").text());});
        });
		function doreset() {
			document.location.reload();
		}
    </script>
</head>
<body>
	
		<div id="container">
			<!-- ---header部分-- start ---- -->
			<include file="./Match/Tpl/Include/header.html" />
			<!-- ---header部分--  end  ---- -->
			<div class="clear"> </div>
			<div id="position">
				<ul class="position">
					<li style="background: url(__IMG__/positionL.jpg) no-repeat; width: 15px;">&nbsp;</li>
					<li style="padding-top: 4px;">您的位置：<a href="__APP__/">大赛首页</a>》企业教官注册</li>
					<li style="background: url(__IMG__/positionR.jpg) right; float: right;">&nbsp;</li>
				</ul>
			</div>
			<form name="aspnetForm" method="post" action="__URL__/registerCom" id="aspnetForm">
			<div id="main1">
				<h1> 企业教官注册</h1>
				<div class="list" id="step1">
					<table width="950" border="0" cellspacing="0" cellpadding="0" style="font-size: 14px;">
					    <tr>
							<td colspan="4" style="text-align: center"><h3> 感谢您对大赛的支持和对团队的指导！</h3>
							  <br /></td>
					    </tr>
						<tr>
							<td width="87" height="35">&nbsp;</td>
							<td width="256"><div align="right" class="STYLE2"> *登录邮箱：</div></td>
							<td width="178"><input name="LoginEmail" type="text" id="LoginEmail" /></td>
							<td width="429"><div id="LoginEmailTip" style="width: 250px" /></td>
						</tr>
						<tr>
							<td width="87" height="35">&nbsp;</td>
							<td><div align="right" class="STYLE2"> *行业类型：</div></td>
							<td id="industry1" style="display: block"><span class="STYLE2" style="overflow: hidden">
								<select name="IndustryList[]" id="IndustryList" multiple="multiple"  style="width:150px;height:50px">
									
								</select>
							</span></td>
							<td><a id="a1" style="color: Blue" ajaxaction="addIndustryInfo"  ay="-90" aw="480"  title="添加所属行业类型" >添加所属行业类型</a></td>
							<td><div id="IndustryListTip" style="width:70px" /></td>
						</tr>
						<tr>
							<td width="87" height="35">&nbsp;</td>
							<td><div align="right" class="STYLE2"> *企业名称：</div></td>
							<td id="trlogo4"><select name="EnterpriseList" id="EnterpriseList" style="width:150px">
								<option value="0">请选择</option>
							</select></td>
							<td id="trlogo1" style="display: none"><span class="STYLE2">
								<input name="EnterpriseName" type="text" id="EnterpriseName"  />
							</span></td>
							<td><a id="a2" ajaxaction="addEnterpriseInfo"   title="添加企业信息"  ax="300" ay="-200" aw="606" style="color: Blue">添加企业</a></td>
							<td><div id="EnterpriseListTip" style="width:70px" /></td>
						</tr>
			
						<tr>
							<td width="87" height="35">&nbsp;</td>
							<td><div align="right" class="STYLE2"> *姓名：</div></td>
							<td><span class="STYLE2">
								<input name="TrueName" type="text" id="TrueName" /></td>
							<td><div id="TrueNameTip" style="width: 250px" /></td>
						</tr>
						<tr>
							<td width="87" height="35">&nbsp;</td>
							<td><div align="right" class="STYLE2"> *密码：</div></td>
							<td><input name="Password" type="password" id="Password" /></td>
							<td><div id="PasswordTip" style="width: 250px" /></td>
						</tr>
						<tr>
							<td width="87" height="35">&nbsp;</td>
							<td><div align="right" class="STYLE2"> *确认密码：</div></td>
							<td><input name="Repassword" type="password" id="Repassword" /></td>
							<td><div id="RepasswordTip" style="width: 250px" /></td>
						</tr>
						<tr>
							<td width="87" height="35">&nbsp;</td>
							<td><div align="right" class="STYLE2"> *手机号码：</div></td>
							<td><input name="PhoneNumber" type="text" id="PhoneNumber" /></td>
							<td><div id="PhoneNumberTip" style="width: 250px" /></td>
						</tr>
						<tr>
							<td width="87" height="35">&nbsp;</td>
							<td><div align="right" class="STYLE2"> *常用邮箱：</div></td>
							<td><input name="Email" type="text" id="Email" /></td>
							<td style="width: 250px,height:250px"><div id="EmailTip"  /></td>
						</tr>
					</table>
					
					<p style="padding-top: 15px; padding-bottom: 15px;" class="list1">
						<input type="submit" name="NextSubmit" value="下一步" id="NextSubmit"  class="input-button" />
						<input id="reset" type="reset" value="重新填写" class="input-button gray" onclick="doreset()" />
					</p>
				</div>
			</div>
			</form>
			<div class="clear"> </div>
			<!-- ---footer部分--  start ---- -->
			<include file="./Match/Tpl/Include/footer.html" />
			<!-- ---footer部分--   end  ---- -->
		</div>
	
	<include file="./Match/Tpl/Include/ajaxloadhtml.html" />
</body>
</html>